import React, { memo,useContext } from 'react'
import { ColorContext } from './color'

export default memo(function showArea() {
  const { color } = useContext(ColorContext)
  return (
    <div style={{color:color}}>
      字体颜色为{color}
    </div>
  )
})
